<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
	String result = request.getParameter("result");
	if (result == "" || result == null)
		result = null;

	String username = (String) session.getAttribute("username");
	if (username == null || "".equals(username)) {
		response.sendRedirect("login.jsp");
	}

	/* if(Session["password"]==null||Session["id"]==null){
		response.sendRedirect("NewLogin.jsp");
	} */

	response.setHeader("Cache-Control", "no-cache,no-store");
	response.setHeader("Pragma", "no-cache");
	response.setDateHeader("Expires", -1);
%>
<html>
<head>
<meta charset="utf-8">
<title>index</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no">
<link rel="stylesheet" href="./css/x-admin.css" media="all">
</head>
<body>
	<div class="layui-layout layui-layout-admin">
		<div class="layui-header header header-demo">
			<div class="layui-main">
				<a class="logo" href="./index.html"> <img src=></img>
				</a>
				<ul class="layui-nav" lay-filter="">
					<li class="layui-nav-item"><img src="images/0.jpg"
						class="layui-circle" style="border: 2px solid #A9B7B7;"
						width="35px" alt=""></li>
					<li class="layui-nav-item"><a style="color: black">账号管理</a>
						<dl class="layui-nav-child">
							<!-- 二级菜单 -->
							<dd>
								<a href="userpassword.jsp">修改密码</a>
							</dd>
							<dd>
								<a href="Exit.jsp">退出</a>
							</dd>
						</dl></li>
					<!-- <li class="layui-nav-item">
                        <a href="" title="消息">
                            <i class="layui-icon" style="top: 1px;">&#xe63a;</i>
                        </a>
                        </li> -->
					<!-- <li class="layui-nav-item x-index"><a href="Homepage.html">前台首页</a></li> -->
				</ul>
			</div>
		</div>
		<div class="layui-side layui-bg-black x-side">
			<div class="layui-side-scroll">
				<ul class="layui-nav layui-nav-tree site-demo-nav" lay-filter="side">
					<!--数据管理-->

					<!--用户管理-->
					<li class="layui-nav-item"><a class="javascript:;"
						href="javascript:;"> <i class="layui-icon" style="top: 3px;">&#xe629;</i><cite>销售管理</cite>
					</a>
						<dl class="layui-nav-child">
							<dd class="">
							<dd class="">
								<a href="javascript:;" _href="sales_show.jsp"> <i
									class="layui-icon"></i><cite>查看销售记录</cite>
								</a>
							</dd>
							</dd>

						</dl>
						<dl class="layui-nav-child">
							<dd class="">
							<dd class="">
								<a href="javascript:;" _href="reservation_show.jsp"> <i
									class="layui-icon"></i><cite>查看预约记录</cite>
								</a>
							</dd>
							</dd>

						</dl></li>
					<li class="layui-nav-item"><a class="javascript:;"
						href="javascript:;"> <i class="layui-icon" style="top: 3px;">&#xe629;</i><cite>签约管理</cite>
					</a>
						<dl class="layui-nav-child">
							<dd class="">
							<dd class="">
								<a href="javascript:;" _href="contract_show.jsp"> <i
									class="layui-icon"></i><cite>查看签约记录</cite>
								</a>
							</dd>
							</dd>

						</dl>
						
						<dl class="layui-nav-child">
							<dd class="">
							<dd class="">
								<a href="javascript:;" _href="restclasstime_find.jsp"> <i
									class="layui-icon"></i><cite>剩余课时提醒</cite>
								</a>
							</dd>
							</dd>

						</dl>
						</li>
					<li class="layui-nav-item"><a class="javascript:;"
						href="javascript:;"> <i class="layui-icon" style="top: 3px;">&#xe629;</i><cite>排课管理</cite>
					</a>
						<dl class="layui-nav-child">
							<dd class="">
							<dd class="">
								<a href="javascript:;" _href="build_class.jsp"> <i
									class="layui-icon"></i><cite>建立班级</cite>
								</a>
							</dd>
							</dd>

						</dl>
						<dl class="layui-nav-child">
							<dd class="">
							<dd class="">
								<a href="javascript:;" _href="class_info.jsp"> <i
									class="layui-icon"></i><cite>班级详情</cite>
								</a>
							</dd>
							</dd>

						</dl>
						<dl class="layui-nav-child">
							<dd class="">
							<dd class="">
								<a href="javascript:;" _href="class_admin.jsp"> <i
									class="layui-icon"></i><cite>排课管理</cite>
								</a>
							</dd>
							</dd>

						</dl>
						</li>
					<li class="layui-nav-item"><a class="javascript:;"
						href="javascript:;" _href=""> <i class="layui-icon"
							style="top: 3px;">&#xe629;</i><cite>考勤管理</cite>
					</a>
						<dl class="layui-nav-child">
							<dd class="">
							<dd class="">
								<a class="javascript:;" href="javascript:;"
									_href="classcheck_info.jsp"> <i class="layui-icon"></i><cite>学生考勤</cite>
								</a>
							</dd>
							</dd>

							<dd class="">
							<dd class="">
								<a href="javascript:;" _href="download_checkinfo_byclass.jsp">
									<i class="layui-icon"></i><cite>班级考勤下载</cite>
								</a>
							</dd>
							</dd>

							<dd class="">
							<dd class="">
								<a href="javascript:;" _href="change_checkinfo_byclass.jsp">
									<i class="layui-icon"></i><cite>班级考勤修改</cite>
								</a>
							</dd>
							</dd>
						</dl></li>
					<li class="layui-nav-item"><a class="javascript:;"
						href="javascript:;" _href="User_management.jsp"> <i
							class="layui-icon" style="top: 3px;">&#xe613;</i><cite>用户管理</cite>
					</a>
						<dl class="layui-nav-child">
							<dd class="">
							<dd class="">
								<a class="javascript:;" href="javascript:;"
									_href="User_management.jsp"> <i class="layui-icon"></i><cite>用户信息</cite>
								</a>
							</dd>
							</dd>
							<dd class="">
							<dd class="">
								<a href="javascript:;" _href="Role_management.jsp"> <i
									class="layui-icon"></i><cite>权限管理</cite>
								</a>
							</dd>
							</dd>
						</dl></li>
					<!--角色管理-->

				</ul>
			</div>

		</div>
		<div class="layui-tab layui-tab-card site-demo-title x-main"
			lay-filter="x-tab" lay-allowclose="true">
			<div class="x-slide_left"></div>
			<ul class="layui-tab-title">
				<li class="layui-this">页面窗口 <!-- <i class="layui-icon layui-unselect layui-tab-close">ဆ</i> -->
				</li>
			</ul>
			<div class="layui-tab-content site-demo site-demo-body">
				<div class="layui-tab-item layui-show">
					<iframe frameborder="0" src="" class="x-iframe"></iframe>
				</div>
			</div>
		</div>
		<div class="site-mobile-shade"></div>
	</div>
	<script src="./lib/layui/layui.js" charset="utf-8"></script>
	<script src="./js/x-admin.js"></script>
	<script>
		layui.use([ 'laydate', 'element', 'laypage', 'layer' ], function() {
			$ = layui.jquery;//jquery
			laydate = layui.laydate;//日期插件
			lement = layui.element();//面包导航
			laypage = layui.laypage;//分页
			layer = layui.layer;//弹出层

			//以上模块根据需要引入

			laypage({
				cont : 'page',
				pages : 100,
				first : 1,
				last : 100,
				prev : '<em><</em>',
				next : '<em>></em>'
			});

			var start = {
				min : laydate.now(),
				max : '2099-06-16 23:59:59',
				istoday : false,
				choose : function(datas) {
					end.min = datas; //开始日选好后，重置结束日的最小日期
					end.start = datas //将结束日的初始值设定为开始日
				}
			};

			var end = {
				min : laydate.now(),
				max : '2099-06-16 23:59:59',
				istoday : false,
				choose : function(datas) {
					start.max = datas; //结束日选好后，重置开始日的最大日期
				}
			};

		});

		//批量删除提交
		function delAll() {
			layer.confirm('确认要删除吗？', function(index) {
				//捉到所有被选中的，发异步进行删除
				layer.msg('删除成功', {
					icon : 1
				});
			});
		}
		/*用户-添加*/
		function user_management_add(title, url, w, h) {
			x_admin_show(title, url, w, h);
		}
		/*用户-查看*/
		function user_management_show(title, url, id, w, h) {
			x_admin_show(title, url, w, h);
		}

		/*用户-停用*/
		function member_stop(obj, id) {
			layer
					.confirm(
							'确认要停用吗？',
							function(index) {
								//发异步把用户状态进行更改
								$(obj)
										.parents("tr")
										.find(".td-manage")
										.prepend(
												'<a style="text-decoration:none" onClick="member_start(this,id)" href="javascript:;" title="启用"><i class="layui-icon">&#xe62f;</i></a>');
								$(obj)
										.parents("tr")
										.find(".td-status")
										.html(
												'<span class="layui-btn layui-btn-disabled layui-btn-mini">已停用</span>');
								$(obj).remove();
								layer.msg('已停用!', {
									icon : 5,
									time : 1000
								});
							});
		}

		/*用户-启用*/
		function member_start(obj, id) {
			layer
					.confirm(
							'确认要启用吗？',
							function(index) {
								//发异步把用户状态进行更改
								$(obj)
										.parents("tr")
										.find(".td-manage")
										.prepend(
												'<a style="text-decoration:none" onClick="member_stop(this,id)" href="javascript:;" title="停用"><i class="layui-icon">&#xe601;</i></a>');
								$(obj)
										.parents("tr")
										.find(".td-status")
										.html(
												'<span class="layui-btn layui-btn-normal layui-btn-mini">已启用</span>');
								$(obj).remove();
								layer.msg('已启用!', {
									icon : 6,
									time : 1000
								});
							});
		}
		// 用户-编辑
		function user_management_edit(title, url, id, w, h) {
			x_admin_show(title, url, w, h);
		}
		/*密码-修改*/
		function user_management_password(title, url, id, w, h) {
			x_admin_show(title, url, w, h);
		}
		//删除用户
		function user_management_delete(title, url, id, w, h) {
			x_admin_show(title, url, w, h);
		}
		/*用户-删除*/
		function member_del(obj, id) {
			layer.confirm('确认要删除吗？', function(index) {
				//发异步删除数据
				$(obj).parents("tr").remove();
				layer.msg('已删除!', {
					icon : 1,
					time : 1000
				});
			});
		}
	</script>
	<script>
		var _hmt = _hmt || [];
		(function() {
			var hm = document.createElement("script");
			var s = document.getElementsByTagName("script")[0];
			s.parentNode.insertBefore(hm, s);
		})();
	</script>
</body>
</html>